<div id="top_nav_cont" class="oe_tops <!--{if $c != "index"}--> nei <!--{/if}--> current">
  <div class="oe_topscon">
    <div class="logo">
      <a href="<!--{$config.siteurl}-->"><img alt="<!--{$config.sitename}-->" title="<!--{$page_title}-->" src="<!--{$urlpath}--><!--{$config.logo}-->" /></a><img class="line" src="<!--{$skinpath}-->images/line.png"/>
    </div>
    <!--{if $c == "index"}-->
    <!--{else}-->
    <div class="area">
      <dl>
        <dt f="but_open_citybox">
		  <span>
		    <!--{if empty($city.cityname)}-->
		    全国
			<!--{else}-->
			<!--{$city.cityname}-->
			<!--{/if}-->
		  </span>
		  <em></em>
	    </dt>
        <dd>
          <ul>
			<!--{assign var="citytype_list" value=vo_list("mod={volistvar} where={citytype}")}-->
			<!--{foreach $citytype_list as $volist}-->
			<li>
			<span><!--{$volist.text}--></span>
			<!--{assign var="city_list" value=vo_list("mod={city} where={v.citytype='<!--{$volist.value}-->'} num={20}")}-->
			<!--{foreach $city_list as $val}-->
			<a href="<!--{$val.url}-->"><!--{$val.cityname}--></a>
			<!--{/foreach}-->
			<div class="clear"></div>
			</li>
			<!--{/foreach}-->
          </ul>
          <div class="btn"> <a href="<!--{routeurl module='city'}-->">全部城市</a> </div>
        </dd>
      </dl>
    </div>
    <!--{/if}-->
   

	<script type="text/javascript">
	$(function(){
		
		$("[f='but_open_citybox']").bind("click", function(){
			if ($(this).parent().hasClass("current")) {
				$(this).parent().removeClass("current");
			}
			else {
				$(this).parent().addClass("current");
			}
		});
	});
	</script>
    <div class="oe_navs">
	  <ul class="mu">
	    <li><a href="<!--{$urlpath}-->index.php?m=user">个人中心</a></li>
	    <li<!--{if $menu_id == 'user'}--> class='current'<!--{/if}-->><a href="<!--{routeurl module='user'}-->">会员</a></li>
	    <li<!--{if $menu_id == 'party'}--> class='current'<!--{/if}-->><a href="<!--{routeurl module='party'}-->">活动</a></li>
	    <li<!--{if $menu_id == 'marry'}--> class='current'<!--{/if}-->><a href="<!--{routeurl module='marry'}-->">征婚</a></li>

	  </ul>
	  <!--{if $login.status == '1'}-->
	  <div class="oe_msg_user">
	    <dl class="user" f="but_open_cp_box">
		  <dt><a href="<!--{$urlpath}-->index.php?m=user"><span><img src="<!--{$login.info.headimgurl}-->" /></span></a></dt>
		  <dd style="display:none;">
		    <span class="jiao"></span>
		    <ul>
			  <li><a href="<!--{$urlpath}-->index.php?m=user">会员中心</a></li>
			  <li><a href="<!--{$urlpath}-->index.php?m=user&c=profile">编辑资料</a></li>
			  <li><a href="<!--{$urlpath}-->index.php?m=user&c=vip">升级会员</a><i></i></li>
			  <li><a href="<!--{routeurl module='passport' action='logout'}-->">退出登录</a></li>
		    </ul>
		  </dd>
	    </dl>
	    <!--{assign var="new_message" value=<!--{countdata type='user' mod='message' where="v.touid='<!--{$login.info.userid}-->' AND v.flag='1' AND v.readstatus='0' AND v.todel='0'"}-->}-->
	    <!--{assign var="new_msg" value=<!--{countdata type='user' mod='msg' where="v.userid='<!--{$login.info.userid}-->' AND v.readflag='0'"}-->}-->
	    <!--{assign var="new_yuetabm" value=<!--{countdata type='user' mod='yuetabm' where="v.homeuid='<!--{$login.info.userid}-->' AND v.flag='1' AND v.keepstatus='0'"}-->}-->
	    <!--{assign var="new_friendapply" value=<!--{countdata type='user' mod='friendapply' where="v.fuserid='<!--{$login.info.userid}-->' AND v.flag='0'"}-->}-->
	    <!--{assign var="new_giftme" value=<!--{countdata type='user' mod='giftme' where="v.touid='<!--{$login.info.userid}-->' AND v.flag='1' AND v.viewstatus='0'"}-->}-->

	    <!--{assign var="total_news" value=($new_message+$new_msg+$new_yuetabm+$new_friendapply+$new_giftme)}-->
	    <dl class="msg" f="but_open_news_box">
		  <dt>
		    <!--{if $total_news > 0}-->
        <span class="current"></span>
        <!--{else}-->
		    <span></span>
        <!--{/if}-->
		    <!--{if $total_news > 0}-->
		    <em><!--{if $total_news>99}-->99+<!--{else}--><!--{$total_news}--><!--{/if}--></em>
		    <!--{/if}-->
		  </dt>
		  <dd style="display:none;">
		    <span class="jiao"></span>
		    <ul>
			  <li>
			    <a href="<!--{$urlpath}-->index.php?m=user&c=msgcontact">新私信</a>
			    <!--{if $new_message > 0}-->
			    <em><!--{$new_message}--></em>
			    <!--{/if}-->
			  </li>
			  <li>
			    <a href="<!--{$urlpath}-->index.php?m=user&c=msg">新消息</a>
			    <!--{if $new_msg > 0}-->
			    <em><!--{$new_msg}--></em>
			    <!--{/if}-->
			  </li>
			  <li>
			    <a href="<!--{$urlpath}-->index.php?m=user&c=yuetabm">约我的</a>
			    <!--{if $new_yuetabm > 0}-->
			    <em><!--{$new_yuetabm}--></em>
			    <!--{/if}-->
			  </li>
			  <li>
			    <a href="<!--{$urlpath}-->index.php?m=user&c=friendapply">好友申请</a>
			    <!--{if $new_friendapply > 0}-->
			    <em><!--{$new_friendapply}--></em>
			    <!--{/if}-->
			  </li>
			  <li>
			    <a href="<!--{$urlpath}-->index.php?m=user&c=giftme">收到礼物</a>
			    <!--{if $new_giftme > 0}-->
			    <em><!--{$new_giftme}--></em>
			    <!--{/if}-->
			  </li>
		    </ul>
		  </dd>
	    </dl>
	    <div class="clear"></div>
	  </div>
	  <script type="text/javascript">
	  $(function(){
		//头像
		$(document).on("mouseover", "[f='but_open_cp_box']", function(){
			if ($(this).find("dd").css("display") == "none") {
				$(this).find("dd").show();
			}
		});
		
		$(document).on("mouseout", "[f='but_open_cp_box']", function(){
			if ($(this).find("dd").css("display") == "block") {
				$(this).find("dd").hide();
			}
		});
		//消息
		$(document).on("mouseover", "[f='but_open_news_box']", function(){
			if ($(this).find("dd").css("display") == "none") {
				$(this).find("dd").show();
			}
		});
		
		$(document).on("mouseout", "[f='but_open_news_box']", function(){
			if ($(this).find("dd").css("display") == "block") {
				$(this).find("dd").hide();
			}
		});

	  });
	  </script>
	  <!--{else}-->
	  <div class="oe_msg_user">
	    <dl class="user">
		  <dt><span><a href="javascript:;" f="pop_jdlogin"><img src="<!--{$skinpath}-->images/head.png" /></a></span></dt>
	    </dl>
	    <div class="clear"></div>
	  </div>
	  <!--{/if}-->
	  <!--//oe_msg_user End-->

    </div>
	<!--//oe_navs End-->

  </div>
</div>
<!--{if $c != "index"}-->
<div style="height:82px;"></div>
<!--{/if}-->